package com.laze.mywanandroid.ui.main.fragment.demo

import android.content.Intent
import com.laze.mywanandroid.R
import com.laze.mywanandroid.base.BaseVmFragment
import com.laze.mywanandroid.ui.demo.FlexBoxLayoutActivity
import com.laze.mywanandroid.ui.main.fragment.home.HomeViewModel
import kotlinx.android.synthetic.main.fragment_demo.*


class DemoFragment : BaseVmFragment<HomeViewModel>() {

    companion object {
        fun newInstance() = DemoFragment()
    }

    override fun layoutRes(): Int = R.layout.fragment_demo

    override fun viewModelClass(): Class<HomeViewModel> = HomeViewModel::class.java

    override fun initView() {
        flexBoxLayoutDemo.setOnClickListener {
            startActivity(Intent(context,FlexBoxLayoutActivity::class.java))
        }
    }

}